package com.unicom.popup;

import android.graphics.drawable.Drawable;
import android.graphics.Bitmap;


public class ActionItem {
	private Drawable icon;
	private Bitmap thumb;
	private String title;
	private int actionId = -1;
    private boolean selected;
    private boolean sticky;
    
    private String likeCount;
    private String description;
    private int rate;
	
    public ActionItem(int actionId, String title, Drawable icon) {
        this.title = title;
        this.icon = icon;
        this.actionId = actionId;
    }
    
    public ActionItem() {
        this(-1, null, null);
    }
    
    
    
    public ActionItem(String likeCount, String description, int rate) {
		super();
		this.likeCount = likeCount;
		this.description = description;
		this.rate = rate;
	}
    
    
    
    

	public String getLikeCount() {
		return likeCount;
	}

	public void setLikeCount(String likeCount) {
		this.likeCount = likeCount;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getRate() {
		return rate;
	}

	public void setRate(int rate) {
		this.rate = rate;
	}

	public ActionItem(int actionId, String title) {
        this(actionId, title, null);
    }
    
    public ActionItem(Drawable icon) {
        this(-1, null, icon);
    }
    
    public ActionItem(int actionId, Drawable icon) {
        this(actionId, null, icon);
    }
	
	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getTitle() {
		return this.title;
	}
	
	public void setIcon(Drawable icon) {
		this.icon = icon;
	}
	
	public Drawable getIcon() {
		return this.icon;
	}
	
    public void setActionId(int actionId) {
        this.actionId = actionId;
    }
    
    public int getActionId() {
        return actionId;
    }
    
    public void setSticky(boolean sticky) {
        this.sticky = sticky;
    }
    
    public boolean isSticky() {
        return sticky;
    }
    
	public void setSelected(boolean selected) {
		this.selected = selected;
	}
	
	public boolean isSelected() {
		return this.selected;
	}
	public void setThumb(Bitmap thumb) {
		this.thumb = thumb;
	}
	
	public Bitmap getThumb() {
		return this.thumb;
	}
}